feat: Added Trimming/NativeAOT support.#21
Conversation
|
@HavenDV @KrzysztofCwalina any chance we could revive this PR and merge it in? would be super useful to get NAOT support (plus source generated JSON parsing would likely be more efficient than reflection) |
Once you remove the trimming helper, I can unblock this PR. |
# Conflicts: # OpenAI.sln # src/Custom/Common/InternalListHelpers.cs # src/Custom/OpenAIModelFactory.cs # src/OpenAI.csproj
It has been removed |
|
Thanks! Looks good! |
|
anyothers approve.please |
|
Hello, @HavenDV ! We are working on a fix in our code generator that will take care of the file under the "src/Generated" folder. Current ETA is to have it merged soon after the holidays. Once that is in, we should be good to merge this PR too. I will keep you posted. Thank you! |
Closes #20
But because preview version of System.Memory.Data does not explicitly support net6.0, this warning appears hereThere are two ways out:Ignore, this can work without problemsAdd #ifdef/ MSBuild Conditions to use old behavior for net6 and new for net8/netstandardI'm waiting for feedback